package com.hyc.webflux.Controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * @projectName: webflux
 * @package: com.hyc.webflux.Controller
 * @className: ReactorController
 * @author: 冷环渊 doomwatcher
 * @description: TODO
 * @date: 2021/12/14 19:27
 * @version: 1.0
 */
@RestController
@RequestMapping("/annotated")
public class ReactorController {
    @GetMapping("/greeting")
    public Mono<String> greeting() {
        return Mono.just(" hello webflux by annotated");
    }
}
